package com.hsteach.dao.mapper;

import com.hsteach.web.controller.visit.vo.RuleDescriptionVO;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 *
 * </p>
 *
 * @author mgb
 * @version RuleDescriptionMapper, java v1.0 2023-11-21 16:33 EXP $
 */
public interface RuleDescriptionMapper {
    /**
     * x新增规则说明
     */
    int addRuleDesc(@Param("ruleName") String ruleName,@Param("ruleDesc")  String ruleDesc ,@Param("orgCode") String orgCode);

    /**
     * 获取规则说明
     * @param
     * @return
     */
    RuleDescriptionVO getRuleDescById(@Param("ruleName") String ruleName,@Param("orgCode")String orgCode);

    int updateRuleDesc(RuleDescriptionVO ruleDescriptionVO);

    RuleDescriptionVO queryRuleDesc(@Param("orgCode")String orgCode);

    /**
     * 查询指定规则说明是否存在
     * @param ruleName
     * @param orgCode
     * @return
     */
    int getRuleDescCountByRuleNameAndOrgCode(@Param("ruleName") String ruleName, @Param("orgCode") String orgCode);

    /**
     * 修改指定规则的规则内容
     * @param ruleName
     * @param orgCode
     * @return
     */
    int updateRuleDescByRuleNameAndOrgCode(@Param("ruleName") String ruleName,@Param("ruleDesc") String ruleDesc,@Param("orgCode") String orgCode);
}
